package com.lengyu.vxminiprogram.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengyu.vxminiprogram.dto.GameInstanceDto;
import com.lengyu.vxminiprogram.entity.GameInstance;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface IGameInstanceConverter {
    GameInstance dtoToEntity(GameInstanceDto dto);
    GameInstanceDto entityToDto(GameInstance entity);
    List<GameInstanceDto> listEntityToDto(List<GameInstance> entityList);
    List<GameInstance> listDtoToEntity(List<GameInstanceDto> dtoList);
    Page<GameInstanceDto> pageEntityToDto(Page<GameInstance> entityPage);
}
